package com.onefinger.services;

import java.util.List;

import org.springframework.flex.remoting.RemotingDestination;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.onefinger.domain.Category;
import com.onefinger.domain.Resource;

@Service
@RemotingDestination(channels = { "my-amf" })
@Transactional
public interface IResourceService {

	
	public List<Resource> list();
	
	@Transactional
	public boolean save( Resource resource );
	
	@Transactional
	public boolean remove( Resource resource );

	public String getLocale( String locale, String code );
	
}
